import { forwardRef, Module } from '@nestjs/common';
import { FilmListService } from './film-list.service';
import { FilmListController } from './film-list.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { FilmList } from './entities/film-list.entity';
import { AudioModule } from 'src/audio/audio.module';
import { TextModule } from 'src/text/text.module';
import { VideoModule } from 'src/video/video.module';
import { PictureModule } from 'src/picture/picture.module';
import { PathItemRelational } from 'src/path-item-relational/entities/path-item-relational.entity';
import { PathListModule } from 'src/path-list/path-list.module';
import { FilmFileRelationalModule } from 'src/film_file_relational/film_file_relational.module';
import { FilmPathRelationalModule } from 'src/film_path_relational/film_path_relational.module';
import { GroupToFilm } from './entities/grouptofilm.entity';
import { User } from 'src/user/entities/user.entity';
import { usertogroup } from 'src/group/entities/usertogroup.entity';

@Module({
  imports: [
    TypeOrmModule.forFeature([FilmList]),
    TypeOrmModule.forFeature([GroupToFilm]),
    TypeOrmModule.forFeature([PathItemRelational]),
    TypeOrmModule.forFeature([User]),
    TypeOrmModule.forFeature([usertogroup]),
    AudioModule,
    TextModule,
    VideoModule,
    PictureModule,
    PathListModule,
    forwardRef(() => FilmFileRelationalModule),
    forwardRef(() => FilmPathRelationalModule),
  ],
  controllers: [FilmListController],
  providers: [FilmListService],
  exports: [FilmListService],
})
export class FilmListModule {}
